package io;

import java.io.*;

public class PWDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("pw.txt");
        OutputStreamWriter osw = new OutputStreamWriter(fos);
        BufferedWriter bw = new BufferedWriter(osw);
        bw.write("啦啦啦啦啦啦");
        bw.write("嘿嘿嘿");
        System.out.println("写入完毕");
        bw.close();
    }

}
